package com.feng.cloud.system.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * @ClassName Todo
 * @Description TODO
 * @Author Better Feng
 * @Date 2020/1/5 16:39
 * @Version 1.0
 **/
@Getter
@Setter
@ToString
@Accessors(chain = true)
@TableName("t_todo")
public class Todo implements Serializable {

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    private String username;

    @NotBlank(message = "{required}")
    @Size(max = 150, message = "{noMoreThan}")
    private String todoDetails;

    private Integer status;

    private LocalDateTime createTime;
}
